package com.zjun.config;

import com.zjun.chain.AbstractChainHandler;
import com.zjun.chain.AbstractHainContext;
import com.zjun.strategy.AbstractExecutegyChoose;
import org.springframework.context.annotation.Bean;

/**
 * 设计模式自动装配
 */
public class DesignPatternAutoConfiguration {
    /**
     * 策略模式选择器
     */
    @Bean
    public AbstractExecutegyChoose abstractExecutegyChoose(){return new AbstractExecutegyChoose();}

    /**
     * 责任链上下文
     * @return
     */
    @Bean
    public AbstractHainContext abstractChainHandler(){return new AbstractHainContext();}
}
